/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fbv.tcc.teste;

import fbv.tcc.classes.PontoRadiacao;
import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author Casa
 */
public class TEste {

    public static void main(String[] args) {

        ArrayList<Double> horaList = new ArrayList<Double>();
        for (double h = 0; h <= 23; h++) {
            //System.out.println("Hora: "+h/60);
            for (double i = 0; i <= 60; i++) {
                System.out.println(h + (i / 60));
                horaList.add(h + (i / 60));
            }

        }
        
        String horaPlan = "2121";
        int tamanho = horaPlan.length();
        double aux = 0;
         int partHora = 0;
         double parteMin = 0;
        
        
        switch(tamanho){
            case 1:
                aux = Double.parseDouble(horaPlan);                
                break;
            case 3:
                partHora = Integer.parseInt(horaPlan.substring(0, 1));
                parteMin = Double.parseDouble(horaPlan.substring(1))/60;                                
                break;
            case 4:
                partHora = Integer.parseInt(horaPlan.substring(0, 2));
                parteMin = Double.parseDouble(horaPlan.substring(2))/60;              
                break;                
        }
        
         System.out.println(": "+partHora+"-"+parteMin+"="+(partHora+parteMin)); 
        

        
        
        

    }
}
